<template>
  <div>
    {{info}}
    我的页
  </div>
</template>

<script>
import { getUserInfo } from "../api/index.js";
export default {
  data() {
    return {
      info: {},
    };
  },
  created() {
    this.getData();
  },
  methods: {
    async getData() {
      let data = await getUserInfo();
      console.log(data);
      this.info = data.data;
    },
  },
};
</script>

<style scoped>
</style>
